﻿using System;
using System.Text;

using mfRCF.Core;

namespace mfRCF.netmf
{
    public class mfRcfPlattformProvider : mfIRcfPlattformProvider
    {

        #region Consts

        private const string C_STR_LISTENING_PREFIX = "http";
        private const int C_INT_LISTENING_PORT = 80;

        #endregion

        #region CTOR

        public mfRcfPlattformProvider() 
        {
            Authenticator = new mfAcceptAllAuthenticator();
            HttpListener = new mfHttpListener(C_INT_LISTENING_PORT, C_STR_LISTENING_PREFIX, Authenticator);
        
        }
        #endregion

        #region mfIRcfPlattformProvider


        public mfIHttpAuthenticator Authenticator
        {
            get;
            set;
        }

        public mfIHttpListener HttpListener
        {
            get;
            set;
        } 

        #endregion
    }
}
